extends "../calxwx_1_1/calxwx_1_1.gd"
func _init():
	pass
func _extInit():
	._extInit()
	chaName = "圣王麒麟"    
	lv = 4
	addSkillTxt("[color=#FFFF00][麒麟怒雷][/color]:[color=#FFCC22]召唤强大的怒雷攻击敌方全体3次，每次造成80%王系物理伤害，每次都有20%概率<麻痹>目标5秒[CD:19][/color]")
	addCdSkill("qlnl",19)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "qlnl":
		var eff = sys.newEff("numHit", position, false, 1)
		eff.setText("麒麟怒雷", "#FF0099")
		eff.anim.set_speed_scale(0.2)
		var chas = getAllChas(1)
		for i in chas:
			for a in range(3):
				typeHurtCha(i,att.atk*0.8,Chara.HurtType.PHY,Chara.AtkType.SKILL)
				if sys.rndPer(20):
					addBuff(bf.mabi.new(5))